package com.xuan.temper.controller;

import com.xuan.temper.entity.ExponentialTemperature;
import com.xuan.temper.entity.PbPeTemp;
import com.xuan.temper.entity.ResponeBean;
import com.xuan.temper.service.PbPeTempService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * @创建人： king xuan
 * @创建时间：2020/10/9
 * @描述：
 */
@RestController
@RequestMapping("PbPeTemp")
public class PbPeTempController {

    @Autowired
    private PbPeTempService pbPeTempService;

    @RequestMapping(value = "/pbTemp", method = RequestMethod.POST)
    public ResponeBean selectOne(@Param("stockCode") String stockCode){
        List<PbPeTemp> exponentialTemperatures = pbPeTempService.pbTemp(stockCode);
        return new ResponeBean("200", "success", exponentialTemperatures);
    }


}
